<div class="login-page">
  <div class="login-box">
    <div class="login-logo">
      <b>Library</b>SYS
    </div>
    <!-- /.login-logo -->
    <div class="login-box-body">
      <p class="login-box-msg">welcome</p>

      <form [formGroup]="formModel" (ngSubmit)="login()">
        <div class="form-group has-feedback">
          <input class="form-control" formControlName="username" placeholder="请输入账号">
          <span class="glyphicon glyphicon-user form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
          <input type="password" class="form-control" formControlName="pwd" placeholder="请输入密码">
          <span class="glyphicon glyphicon-lock form-control-feedback"></span>
        </div>
        <div class="error-msg" [hidden]="!responseErr">{{responseErr}}</div>
        <div class="row">
          <div class="col-xs-offset-4 col-xs-4">
            <button type="submit" class="btn btn-primary btn-block btn-flat">登 录</button>
          </div>
          <!-- /.col -->
        </div>
      </form>
    </div>
    <!-- /.login-box-body -->
  </div>
  <!-- /.login-box -->
</div>
